package com.yugu.park.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName t_card_info
 */
@TableName(value ="t_card_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CardInfo implements Serializable {
    /**
     * 
     */
    @TableId
    private String id;

    /**
     * 
     */
    @ApiModelProperty(value = "姓名")
    private String name;

    /**
     * 
     */
    @ApiModelProperty(value = "性别0男1女")
    private Integer sex;

    /**
     * 
     */
    @ApiModelProperty(value = "年龄")
    private Integer age;

    /**
     * 
     */
    @ApiModelProperty(value = "头像地址")
    private String url;

    /**
     * 
     */
    @ApiModelProperty(value = "开始日期")
    @JsonFormat( pattern="yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;

    /**
     * 
     */
    @JsonFormat( pattern="yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束日期")
    private Date endDate;



    /**
     * 
     */
    @ApiModelProperty(value = "办理日期")
    private Date createTime;

    /**
     * 
     */
    @ApiModelProperty(value = "状态1正常,2到期")
    private Integer status;

    /**
     * 
     */
    @ApiModelProperty(value = "入园次数")
    private Integer count;

    /**
     * 
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 
     */
    @ApiModelProperty(value = "编号")
    private String num;

    @ApiModelProperty(value = "会员ID")
    private String memberId;

    @ApiModelProperty(value = "删除标志")
    private Integer delFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}